Skip to content

Add read-only commands for the model catalog and providers - #32

Merged
miqui merged 1 commit into
mainfrom
models-commands
Nov 19, 2026
Merged

miqui merged 1 commit into
mainfrom
models-commands

Conversation

@miqui

@miqui miqui commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Part of #15.

Adds three read-only commands for the Platform model gateway:

Command API
adapt models list GET /v1/models
adapt models providers GET /v1/model-gateway/providers
adapt models discover ID GET /v1/model-gateway/providers/{id}/models

Provider writes (create, key rotation, enable/disable, delete) are left out while the direction for provider management is decided; they stay in the dashboard for now. discover needs browser sign-in as an owner or admin, and models list needs the modelGateway use permission.

Docs: CLI reference, API coverage, and the agent skill are updated.

Tests: tests/models covers the request paths, organization header, JSON pass-through, and a 403 error message.

🤖 Generated with Claude Code

`models list`, `models providers`, and `models discover ID` map to the
Platform model-gateway read routes. Provider writes stay in the dashboard
for now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@the-adaptile the-adaptile Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confidence Score: 5/5

Summary

Adds read-only model catalog, provider listing, and discovery commands with low integration risk. Local formatting, Clippy, and all 120 Rust tests passed; live-provider behavior was not exercised.

Deployed verification not applicable: adapt/platform-cli is outside the adapt/adapt and adapt/platform pilot. Its PR workflow builds/tests CLI artifacts without deploying a preview. No webhook sent.

Important Files Changed

File Changes
src/cli.rs Defines model subcommands, aliases, provider selectors, and discovery authentication help.
src/commands.rs Routes model commands through the existing authenticated, organization-scoped API client.
tests/models/mod.rs Tests request paths, authentication headers, organization selection, JSON preservation, and discovery permission errors.
tests/cli.rs Registers the model command integration tests.
docs/cli-reference.md Documents model commands, permissions, discovery authentication, and provider ID prefixes.
docs/api-coverage.md Maps model endpoints to commands and identifies deferred provider writes.
skills/adapt/SKILL.md Adds model command guidance and permission requirements for agents.

Run info

Field ID
Agent 0d6ccd7e-b62f-4075-a561-199d1a7b1bf0
Automation ec14e69d-634f-4af0-a6dd-27aa06a1f6b3
Run fdf67dc6-3f7f-48bf-8bb0-09f9fcd1176e

Reviewed: 5815fcc-23208e7 · ↻ Re-run review

@miqui
miqui requested a review from scsmithr November 19, 2026 14:47
@miqui

miqui commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

@scsmithr - Readonly for now, since I am not sure about the provider management will remain exclusively via dashboard.

@miqui
miqui merged commit 9f5e86c into main Nov 19, 2026
8 checks passed
miqui pushed a commit that referenced this pull request Nov 19, 2026
Resolves conflicts with the model catalog commands (#32) by keeping both
sides: the usage and model command definitions, both reference sections,
and both platform provenance notes in the API coverage doc.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants